package club.ruanx.movie.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.multipart.MultipartFile;

import static org.springframework.http.MediaType.MULTIPART_FORM_DATA_VALUE;

/**
 * @author 阮胜
 * @date 2019/1/28 14:38
 */
@FeignClient(name = "FILE-SERVICE")
public interface FileServiceClient {

    @PostMapping(value = "/upload", consumes = MULTIPART_FORM_DATA_VALUE)
    String upload(MultipartFile file);
}
